package com.qykj.ddhing.pda.demo.dagger2.test2;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * @author liuxiaofeng QQ:363204195
 * @name ddhing_pda
 * @class name：com.qykj.ddhing.pda.demo.dagger2.test1
 * @class describe
 * @time 2018/7/18 22:17
 * @change
 * @chang time
 * @class describe
 */
@Module
public class MainModule {

    @Provides
    @Singleton
    /*注意：在提供依赖对象这一层面上，@Provides级别高于@Inject。（具体可以测试证明，这里不作说明）*/
    User2 provideUser2() {
        return new User2("test 带参数构造");
    }
}
